package tchk.xyz.lingyuntutorminiprogram.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tchk.xyz.lingyuntutorminiprogram.dto.WithdrawalAuditDTO;
import tchk.xyz.lingyuntutorminiprogram.entity.WalletTransaction;

@Mapper
public interface WalletTransactionMapper extends BaseMapper<WalletTransaction> {
    IPage<WithdrawalAuditDTO> findPendingWithdrawals(IPage<WithdrawalAuditDTO> page);

    // 增加 @Param("status") 注解
    IPage<WithdrawalAuditDTO> findWithdrawalsByStatus(IPage<WithdrawalAuditDTO> page, @Param("status") String status);
}